from production.models import Location

def addRecord(c, t, password="test"):
    return c.post('/location/add', {'username': 'test', 'password': '%s' % password, 'time' : t, 'longitude' : 60, 'latitude' : 30, 'speed' : 10.05})

def tearDown():
    Location.objects.all().delete()